package com.vehicle.util;


import com.vehicle.feign.SmsFeign;
import com.vehicle.service.UserService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Calendar;
import java.util.Date;

@Component
public class JulyNotificationTask {

    @Autowired
    SmsFeign smsFeign;

    @Autowired
    UserService userService;

    @Scheduled(cron = "0 10 17 2 6 ?") // 每年7月1日执行任务
    public void sendJulyNotification() {
        smsFeign.sendOver("刘艳","16684867746");
    }
}
